import type { HttpResponse } from "../request";
import type { UserInfo } from "../user";
import type { SongItem } from "../song";

export interface PlayListItem {
  backgroundCoverId: number;
  backgroundCoverUrl: string;
  creator: UserInfo;
  name: string;
  tracks: SongItem[];
  coverImgId: number;
  coverImgId_str: string;
  coverImgUrl: string;
  description: string;
  titleImageUrl: string;
  trackCount: number;
}

export interface PlaylistResult extends HttpResponse {
  playlist: PlayListItem;
}

export interface PlayListDynamic extends HttpResponse {
  commentCount: number;
  followed: boolean;
  gradeStatus: "OPENED";
  playCount: number;
  remarkName: null;
  remixVideo: null;
  shareCount: number;
  subscribed: boolean;
  bookedCount: number;
}

export interface PlayListSongsResult extends HttpResponse {
  songs: SongItem[];
}
